package com.atguigu.demo.entity;

/**
 * 
 * @TableName t_cooker
 */
public class Cooker {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String cookerName;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getCookerName() {
        return cookerName;
    }

    /**
     * 
     */
    public void setCookerName(String cookerName) {
        this.cookerName = cookerName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Cooker other = (Cooker) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCookerName() == null ? other.getCookerName() == null : this.getCookerName().equals(other.getCookerName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCookerName() == null) ? 0 : getCookerName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", cookerName=").append(cookerName);
        sb.append("]");
        return sb.toString();
    }
}